package com.by.service.impl;

import com.by.mapper.StockMapper;
import com.by.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ServivE
 * @version 0.1
 * @className StockServiceImpl
 * @description
 * @date 2024/11/2 14:03
 * @since jdk17
 */
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    StockMapper stockMapper;

    @Override

    public int updateStock(int goodsId, int num) {
        return stockMapper.updateStock(goodsId, num);
    }
}
